from rest_framework import serializers
from . import models


class RoleSerializer(serializers.ModelSerializer):
    class Meta:
        model = models.AdminRole
        fields = ['id', 'name', 'auth', 'ord']

        extra_kwargs = {
            'id': {'read_only': True}
        }